5c98227fe68ef638d9768cee6d7286aa14cde234,clients/ip-geocoder-client/src/com/liferay/client/json/ipgeocoder/util/IPGeocoderUtil.java,IPGeocoderUtil,getIPInfo,#String#,41
Before Change
ipGeocoderRequestJSON.put("ipAddress", ipAddress);
String ipGeocoderResponse = MessageBusUtil.sendSynchronizedMessage(
DestinationNames.IP_GEOCODER, ipGeocoderRequestJSON.toString());
if (ipGeocoderResponse == null) {
return null;
After Change
public static IPInfo getIPInfo(String ipAddress) throws PortalException {
JSONObject ipInfoJSON =
(JSONObject)MessageBusUtil.sendSynchronizedMessage(
DestinationNames.IP_GEOCODER, ipAddress);
if (ipInfoJSON == null) {
return null;